package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {

    //根据动态id和互动类型，分页查询互动数据
    List<Comment> findComments(String movementId, Integer commentType,
                               Integer page, Integer pagesize);

    //保存互动数据
    Integer save(Comment comment);

    //判断互动数据是否存在
    Boolean hasComment(String movementId, Long userId, Integer commentType);

    //删除互动数据
    Integer delete(String movementId, Long userId, Integer commentType);
}
